export const filterDataSource = (dataSource, value) => {
	// console.log('dataSource: ', dataSource);
	// console.log('value: ', value);

	// label: "[\"1\", \"2\"]"
	// value: 1

	if (Array.isArray(value)) {
		return value.map(item => {
			const rowLabel = dataSource && dataSource.find(i => i.value === item)
			return rowLabel?.label
		})
	}
	const rowLabel = dataSource && dataSource.find(item => item.value === value)
	return rowLabel?.label
}